<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$message = urldecode(UV::readMQ($route->GET("message")));

if ($message != "")
{
	$userId = $user->getUserId();
	$time = time();
	if ($db->sendQuery("insert into `short_messages` values (NULL,'$userId','$message','$time')"))
		echo "success";
}

?>